package com.aaa.service.impl;

import com.aaa.dao.InventoryMapper;
import com.aaa.entity.Inventory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class InventoryServiceimpl implements InventoryMapper {
    @Resource
    InventoryMapper inventoryDao;

    @Override
    public List<Inventory> findpage(Integer pageSize, Integer pageNum) {
        return inventoryDao.findpage(pageSize, pageNum);
    }

    @Override
    public Integer pagecount() {
        return inventoryDao.pagecount();
    }

    @Override
    public Integer add(Inventory inventory) {
        return inventoryDao.add(inventory);
    }

    @Override
    public Integer update(Inventory inventory) {
        return inventoryDao.update(inventory);
    }

    @Override
    public List<Inventory> Inventoryrecords(Integer pageSize, Integer pageNum) {
        return inventoryDao.Inventoryrecords(pageSize, pageNum);
    }

    @Override
    public Integer findcount() {
        return inventoryDao.findcount();
    }

}
